package com.ysm.smfu.area;

import android.text.TextUtils;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * Created by Administrator on 2016/10/19.
 */
public class Area {
    public CopyOnWriteArrayList<Cityinfo> RECORDS;

    public String getIdByName(String name) {
        String id = "";
        if (RECORDS != null)
            for (int i = 0; i < RECORDS.size(); i++) {
                if (TextUtils.equals(RECORDS.get(i).areaname, name)) {
                    id = RECORDS.get(i).id;
                }
            }
        return id;
    }
}
